<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航栏</title>
    <style>
        li {
            list-style: none;
            float: left;
            padding: 10px 20px 15px;
        }

        a {
            text-decoration: none;
            color: black;
        }

        ul {
            width: 600px;
            margin: auto;
            border-top: 2px solid orange;
            border-bottom: 1px solid rgb(183, 179, 179);
            overflow: hidden;
        }

        li:hover {
            background-color: rgb(183, 179, 179);
            text-decoration: underline;
        }
    </style>
</head>

<body>
    <ul>
        <li><a href="#">首页</a></li>
        <li><a href="#"></a>手机新浪网</li>
        <li><a href="#">移动客户端</a></li>
        <li><a href="#">博客</a></li>
        <li><a href="#">微博</a></li>
        <li><a href="#">关注我</a></li>
    </ul>
</body>

</html>